package com.cjs.example.mapper;

import com.cjs.example.entity.Member;
import com.cjs.example.entity.MemberExample;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface MemberMapper {

    @Insert("insert into member (name) values (#{name})")
    int insert(Member member);

    @Select("select * from member")
    List<Member> selectByExample();
}
